package com.mzhmxh.service.impl;

import com.mzhmxh.mapper.SmbmsBillmapper;
import com.mzhmxh.pojo.SmbmsBill;
import com.mzhmxh.pojo.SmbmsUser;
import com.mzhmxh.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author LiJinCheng
 * @Date 2020/7/11 6:35 下午
 * @Version 1.0
 * @package com.mzhmxh.service.impl
 **/
@Service
@Transactional
public class OrderServiceImpl implements OrderService {
    @Autowired
    private SmbmsBillmapper billmapper;

    @Override
    public List<Map<String,Object>> getList(SmbmsBill bill) {
        try {
            return billmapper.getList(bill);

        }catch (Exception e){
            return null;
        }
    }

    @Override
    public int insert(SmbmsBill record) {
        return billmapper.insert(record);
    }

    @Override
    public SmbmsBill selectByPrimaryKey(Long id) {
        return billmapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SmbmsBill record) {
        return billmapper.updateByPrimaryKeySelective(record);
    }
}
